/*#include <stdio.h>
int main()
{
	double a,b,c;
	while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF)
	{
	if(a+b>c&&a+c>b&&b+c>a)
	{
		if(a==b==c)
		{
			printf("Equilater triangle!\n");
		}
		else if(a==b||a==c||b==c)
		{
			printf("Isosceles triangle!\n");
		}
		else 
		{
			printf("Ordinary triangle!\n");
		}
	}
	else
	{
		printf("Not a triangle!\n");
	}
	}
	return 0;
}
#include <stdio.h>
int main()
{
	int year,month,day,y,m,d;
	scanf("%d %d %d",&year,&month,&day);
	scanf("%d %d %d",&y,&m,&d);
	if(m>=month||m==month&&d>=day)
	{
		printf("yes");
	}
	else 
	{
		printf("no");
	}
	return 0;
}
#include <stdio.h>
#include <math.h>
int main()
{
	double a,b,c,x1,x2,d;
	scanf("%lf %lf %lf",&a,&b,&c);
	d=b*b-4*a*c;
	if(a==0)
	{
		printf("Not quadratic");
	}
	else
	{
		if(d==0)
		{
			printf("x1=x2=%.2lf",(-b+sqrt(d))*1.0/2/a);
		}
		else if(b*b-4*a*c>0)
		{
			printf("x1=%.2lf;x2=%.2lf",(-b-sqrt(d))*1.0/2/a,(-b+sqrt(d))*1.0/2/a);
		}
		else
		{
			printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi",-b*1.0/2/a,sqrt(-d)*1.0/2/a,-b*1.0/2/a,sqrt(-d)*1.0/2/a);
		}
}
	return 0;
}
#include <stdio.h>
int main()
{
	int year,month;
	while(scanf("%d %d",&year,&month)!=EOF){
	if(year%4==0&&year%100!=0||year%400==0&&month==2)
		printf("29");
	else
	{
		switch(month)
		{
			case 1:
				printf("31\n");
                break;
            case 2:
                printf("28\n");
                break;
			case 3:
				printf("31\n");
                     break;
			case 4:
				printf("30\n");
                     break;
			case 5:
				printf("31\n");
                     break;
			case 6:
				printf("30\n");
                     break;
			case 7:
				printf("31\n");
                     break;
			case 8:
				printf("31\n");
                     break;
			case 9:
				printf("30\n");
                     break;
			case 10:
			printf("31\n");
                break; 
			printf("30\n");
                 break;
			case 12:
			printf("31\n"); 
                 break;
		}
	}
    }
	return 0;
} 
#include <stdio.h>
int main()
{
	int c,m,e;
	scanf("%d %d %d",&c,&m,&e);
	if((c+m+e)*1.0/3>60)
	{
		printf("NO");
	}
	else
	{
		printf("YES");
	}
	return 0;
 } 
#include <stdio.h>
int main()
{
	int i,sum=0,count=1;
	char arr[13];
		scanf("%s",arr);
	for(i=0;i<12;i++)
	{
		if(arr[i]>='0'&&arr[i]<='9')
		{
		sum=sum+count*(arr[i]-'0');
		count++;
		}
	}
	if(sum%11==arr[12]-'0'||sum%11==10&&arr[12]=='X')
	{
		printf("Right");
	}
	if(sum%11==10)
	{
		for(i=0;i<12;i++)
		{
			printf("%c",arr[i]); 
		}
		printf("X");
	}
	else 
	{
		arr[12]=sum%11+'0'; 
		for(i=0;i<13;i++)
		{
			printf("%c",arr[i]);
		}
	 } 
	return 0;
}
#include <stdio.h>
int main()
{
	char ch;
	double a,b;
	scanf("%lf %c %lf",&a,&ch,&b);
	switch(ch)
	{
		case '+':
			printf("%.4lf+%.4lf=%.4lf",a,b,a+b);
			break;
		case '-':
			printf("%.4lf-%.4lf=%.4lf",a,b,a-b);
			break;
		case '*':
			printf("%.4lf*%.4lf=%.4lf",a,b,a*b);
			break;
		case '/':
			if(b!=0){
			printf("Wrong!Division by zero!");
			break;}
			else{
			printf("%.4lf/%.4lf=%.4lf",a,b,a*1.0/b);
			break;}
		daufalt:
			printf("Invalid operation");
			break;
	}
	return 0;
}
#include <stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
	{
		printf("Happy new year!Good luck!\n");
	}
	return 0;
}
#include <stdio.h>
int main()
{
	int n;
	long long sum=0;
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
	{
		sum=sum+i;
	}
	printf("%lld",sum);
}
#include <stdio.h>
int main()
{
	int n,count=0,odd=0;
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
	{
		if(i%2==0)
		{
			count++;
		}
		else
		odd++;
	}
	printf("%d %d",odd,count);
	return 0;
}*/
#include <stdio.h>
int main()
{
	int count=0,flag=0;
	for(int i=100;i<=999;i++)
	{
		for(int j=2;j<i;j++)
		{
			if(i%j==0)
			{
				flag=0;
				break;
			}
		}
		if(flag!=0)
		{
			printf("%d",i);
			count++;
		}
	}
	printf("%d",count);
	return 0;
}

